﻿
@{
    ViewBag.Title = "Product Release";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@section LeftNav{
    @Html.Partial("Product_LeftNav", IceTea.Infrastructure.ProductNav.Release)
}

        <a id="refreshbtn" class="btn btn-default btn-sm" data-toggle="tooltip" title="Refresh" 
            data-ajax="true" data-ajax-method="Get" data-ajax-mode="replace" 
            data-ajax-update="#releaselist" data-ajax-url="/Product/ReleaseList" 
            href="#">
            <span class="glyphicon glyphicon-refresh"></span></a>

        <a id="createbtn" class="btn btn-default btn-sm" data-toggle="tooltip" title="Create Release" 
            data-ajax="true" data-ajax-method="Get" data-ajax-mode="replace" 
            data-ajax-update="#editdialog" data-ajax-url="/Product/EditRelease" 
            href="#">
            <span class="glyphicon glyphicon-plus"></span></a>
               
        <table class="table table-striped table-hover">
            <thead>
                <tr><td class="col-md-3">Name</td>
                    <td class="col-md-4">Start Date</td>
                    <td class="col-md-4">End Date</td>
                    <td class="col-md-1">
                        
                    </td>
                </tr>
            </thead>
            <tbody id="releaselist">                
                @Html.Action("ReleaseList", "Product")
            </tbody>
        </table>
    
<!-- the modal dialog of the Edit Release -->
<div class="modal fade" id="editdialog" role="dialog">
</div>

@Scripts.Render("~/bundles/ajax")

<script type="text/javascript">
    function OnComplete(request, status) {
        aler(status);
    }

</script>